package com.hwua.entity;

public class User {
    private int id;//用户id
    private String uname;//用户名
    private String pwd;//用户密码
    private int sex;//用户性别 0为男 1为女
    private String birthday;//用户生日
    private String idcard;//身份证
    private String email;//邮箱
    private String mobile;//手机号码
    private String address;//家庭住址
    private int utype;//? 0管理员?

    public User() {
    }

    public User(int id, String uname, String pwd, int sex, String birthday, String idcard, String email, String mobile, String address, int utype) {
        this.id = id;
        this.uname = uname;
        this.pwd = pwd;
        this.sex = sex;
        this.birthday = birthday;
        this.idcard = idcard;
        this.email = email;
        this.mobile = mobile;
        this.address = address;
        this.utype = utype;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getUtype() {
        return utype;
    }

    public void setUtype(int utype) {
        this.utype = utype;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", uname='" + uname + '\'' +
                ", pwd='" + pwd + '\'' +
                ", sex=" + sex +
                ", birthday='" + birthday + '\'' +
                ", idcard='" + idcard + '\'' +
                ", email='" + email + '\'' +
                ", mobile='" + mobile + '\'' +
                ", address='" + address + '\'' +
                ", utype=" + utype +
                '}';
    }
}
